package cn.zyjw.model;

import cn.zyjw.domain.SysMenu;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.List;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginResult {

    /**
     * 产生的token
     */
    private String token;

    /**
     * 菜单数据
     */
    private List<SysMenu> menus;

    /**
     * 用户所拥有的权限
     */
    private Set<SimpleGrantedAuthority> authorities;
}
